<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
   	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
	<title>管理</title>
    <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
    <script src="js/jquery-2.0.3.min.js" type="text/javascript"></script>
    <script src="js/bootstrap.js" type="text/javascript"></script>
    <script src="js/jquery.twbsPagination.js" type="text/javascript"></script>   
    <script type="text/javascript">
    
    /* $(document).ready(function () {
	    $('#pagination-demo').twbsPagination({	    	
	        totalPages: ${pageCount},
	        visiblePages: ${pageCount}>10?10:${pageCount},
			startPage:${page},
			endPage:${page}+5,
	        version: '1.1',
	        first: "首页",
	        last: "未页",
	        prev: '上一页',
	        next: '下一页',
	        onPageClick: function (event, page) {	        	
	        	if(page!=${page}){
					location.href="product_num_check_getPagedCategoryProductNum.action?page="+ page +"&rows=10";
	        	}	        	
	        }
	    });
    }); */
    </script>
</head>

<body>
<div class="panel panel-primary">
  <div class="panel-heading">管理 </div>
  <div class="panel-body"> 
  <form class="form-horizontal" action="product_num_check_listByPage.action" method="post">
  	
  	<table>
  		<tr>
  			<td><input type="text" name="t1.third_category_id" class="form-control" id="input_third_category_id" placeholder="商品总数id是-1" style="width: 150px"  ></td>
﻿<td></td>
  			<td><input type="text" name="t1.third_category_name" class="form-control" id="input_third_category_name" placeholder="" style="width: 150px"  ></td>
﻿<td></td>
  			<td><input type="text" name="t1.num" class="form-control" id="input_num" placeholder="" style="width: 150px"  ></td>
﻿<td></td>
  			<td><input type="text" name="t1.create_date" class="form-control" id="input_create_date" placeholder="" style="width: 150px"  ></td>
﻿<td></td>
  			<td><input type="text" name="t1.lot_num" class="form-control" id="input_lot_num" placeholder="" style="width: 150px"  ></td>

  			<td><button type="submit" class="btn btn-default">查询</button></td>
  			<td><button type="button" onclick="location.href='product_num_checkForm.jsp'" class="btn btn-default">增加</button></td>
  			<td><button type="button" onclick="location.href='product_num_check_excelExport.action'" class="btn btn-default">导出Excel</button></td> 		
  		</tr>
  	</table>
  	
</form>
  
  </div>
		<table class="table table-bordered table-hover">
		    <thead>
			    <tr>
 <th>三级分类编号</th>
 <th>三级分类名称</th>
 <th>本次批号日期</th>
 <th>上次批号日期</th>
 <th>本次批号数量</th>
 <th>上次批号数量</th>
 <th>差值</th>
 <th>百分比</th>
 <th></th>

			    </tr>
		    </thead>
		    <%-- <s:iterator value="#list">
			    <tr>
 <th>${thirdCategoryId }</th>
 <th>${thirdCategoryName }</th>
 <th><fmt:formatDate value="${createDate }" pattern="yyyy-MM-dd HH:mm:ss"/> </th>
 <th><fmt:formatDate value="${lastLotDate }" pattern="yyyy-MM-dd HH:mm:ss"/> </th>
 <th>${latestNum }</th>
 <th>${lastNum }</th>
 <th>${d_value }</th>
 <th>${dValue }</th>
 <th>${percent }</th>
			        
			    </tr>        
		    </s:iterator> --%>
<c:forEach items="${list }" var="list">
	<tr>
 <th>${list.thirdCategoryId }</th>
 <th>${list.thirdCategoryName }</th>
 <th><fmt:formatDate value="${list.createDate }" pattern="yyyy-MM-dd HH:mm:ss"/> </th>
 <th><fmt:formatDate value="${list.lastLotDate }" pattern="yyyy-MM-dd HH:mm:ss"/> </th>
 <th>${list.latestNum }</th>
 <th>${list.lastNum }</th>
 <th>${list.d_value }</th>
 <th>${list.percent }</th>
			        
			    </tr>    
</c:forEach>
		</table>

		<%-- <section id="main-content">
		    <p>
		        <div class="text-center" display="inline">
		            <ul id="pagination-demo" class="pagination-sm">&nbsp;&nbsp;&nbsp;共${pageCount}页</ul><a href="product_num_check_excelExport">导出excel</a>
		        </div>
		    </p>
		</section> --%>
		<%-- <%@include file="page.jsp" %> --%>
		<jsp:include page="page.jsp"></jsp:include>
  
</div>
</body>
</html>
